﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Nok_Air
{
    public class AirportItemViewModel : INotifyPropertyChanged
    {
        private string _airPortName;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string AirPortName
        {
            get
            {
                return _airPortName;
            }
            set
            {
                if (value != _airPortName)
                {
                    _airPortName = value;
                    NotifyPropertyChanged("AirPortName");
                }
            }
        }

        private string _airPortIcon;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string AirPortIcon
        {
            get
            {
                return _airPortIcon;
            }
            set
            {
                if (value != _airPortIcon)
                {
                    _airPortIcon = value;
                    NotifyPropertyChanged("AirPortIcon");
                }
            }
        }

        private string _airPortLocat;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string AirPortLocat
        {
            get
            {
                return _airPortLocat;
            }
            set
            {
                if (value != _airPortLocat)
                {
                    _airPortLocat = value;
                    NotifyPropertyChanged("AirPortLocat");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}